package com.yuanchu.goods.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.common.utils.Query;

import com.yuanchu.goods.dao.YoshopSpecDao;
import com.yuanchu.goods.entity.YoshopSpecEntity;
import com.yuanchu.goods.service.YoshopSpecService;


@Service("yoshopSpecService")
public class YoshopSpecServiceImpl extends ServiceImpl<YoshopSpecDao, YoshopSpecEntity> implements YoshopSpecService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YoshopSpecEntity> page = this.page(
                new Query<YoshopSpecEntity>().getPage(params),
                new QueryWrapper<YoshopSpecEntity>()
        );

        return new PageUtils(page);
    }

}